package com.lmk.mkcc.feign;

import com.lmk.mkcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "service-media",fallbackFactory = GetMediaFileServicefallbackFactory.class)
public interface GetMediaFileService {
    // 根据courseId查询mediafile对象
    @RequestMapping(value = "/mediaFile/course/{courseId}",method = RequestMethod.GET)
    JSONResult getMediaByCourseId(@PathVariable("courseId") Long courseId);
}
